package org.example.controller.admin;

import org.example.pojo.Article;
import org.example.response.ResponseResult;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/article")
public class ArticleApi {

    @PostMapping
    public ResponseResult postArticle(@RequestBody Article article) {
        return null;
    }

    @DeleteMapping("/{articleId}")
    public ResponseResult deleteArticle(@PathVariable String articleId) {
        return null;
    }

    @PutMapping("/{articleId}")
    public ResponseResult uploadArticle(@PathVariable String articleId) {
        return null;
    }

    @GetMapping("/{articleId}")
    public ResponseResult getArticle(@PathVariable String articleId) {
        return null;
    }

    @GetMapping("/list")
    public ResponseResult listArticles(@RequestParam("page") int page, @RequestParam("size") int size) {
        return null;
    }

    @PutMapping("/state/{articleId}{state}")
    public ResponseResult uploadArticleState(@PathVariable String articleId, @PathVariable String state) {
        return null;
    }

    //置顶文章
    @PutMapping("/top/{articleId}")
    public ResponseResult uploadArticleState(@PathVariable String articleId) {
        return null;
    }
}
